<h3>Create a Relationship Between Pages</h3>
   <?php echo form_remote_tag('related_pages',
               array(
                   'name'=>'related_pages_form',
                   'update'=>'success_messages',
                   'before'=>"selectAll('related-pages')",
                   'complete'=>"toggle_success();",
                   )
               )
    ?>
   <?php echo  hidden_field('pages','id') ?>
   <?php 
   $related_pages = $pages->related_pages();
   echo select_transfer('related_pages[]', 
                        array_diff($pages->get_pages_as_list($pages->get('id')), $related_pages), 
                        $related_pages)?>  
   <p><?php echo submit_tag('Save Related Pages')?></p>
   <?php echo end_form_tag()?>